//package com.ubing.boot.notesforjava.controller;
//
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletRequest;
//
///**
// * @ClassName : ErrorController
// * @Description : ErrorController
// * @Author : ubing
// * @Date: 2023-02-17 12:02
// */
//
//@RestController
//public class ErrorController {
//
//    @RequestMapping("/error")// springmvc中/error应该已经被占用
//    public void error(HttpServletRequest request) throws Exception {
//        throw ((Exception) request.getAttribute("filter.error"));
//    }
//}
